import config from '@/config'
import http from '@/utils/request'

export default {
	customerList: {
		list: {
			url: `${config.API_URL}/customerCenter/list`,
			name: '公文活动1列表',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		}
	},
	getCustomerList: {
		url: `${config.API_URL}/customerCenter/getCustomerList`,
		name: '公文活动1列表',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	filingWhiteList:{
		recordWhitelist: {
			url: `${config.API_URL}/business/recordWhitelist`,
			name: '商道客户非白明细-列表',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		},
		getChinaTree: {
			url: `${config.API_URL}/basic/home/getChinaTree`,
			name: '省份',
			get: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.get(this.url, data)
			}
		},
		admMkMainBusinessTypes: {
			url: `${config.API_URL}/business/admMkMainBusinessTypes`,
			name: '品种',
			get: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.get(this.url, data)
			}
		},
		deleteRecordWhitelist: {
			url: `${config.API_URL}/business/deleteRecordWhitelist`,
			name: '备案白名单删除',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		},
		importWhitelist: {
			url: `${config.API_URL}/business/importWhitelist`,
			name: '新增导入',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		},
		coverImportWhitelist: {
			url: `${config.API_URL}/business/coverImportWhitelist`,
			name: '覆盖导入',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			}
		},
		download: {
			url: `${config.API_URL}/business/export`,
			name: '导出',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data,{responseType: 'blob'})
			},
		},
		updateRecordWhitelist: {
			url: `${config.API_URL}/business/updateRecordWhitelist`,
			name: '备案白名单修改',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			},
		},
	},
	nonWhiteDetail:{
		admMkNonWhiteListDetails: {
			url: `${config.API_URL}/business/admMkNonWhiteListDetails`,
			name:'非白明细分页列表',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data)
			},
		},
		admMkNonWhiteList: {
			url: `${config.API_URL}/business/admMkNonWhiteList`,
			name: '导出',
			post: async function (data = {}) {
				// eslint-disable-next-line no-return-await
				return await http.post(this.url, data,{responseType: 'blob'})
			},
		},
	},
	

}
